# -*- coding: utf-8 -*-
'''
Created on Apr 25, 2012

@author: LONG HOANG GIANG
'''
import sys
import os
sys.path.append(os.path.expanduser('/home5/vietcntt/longhoanggiang/python'))
sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
from CrawlerLib import commonlib
from sites.vechai import Vechai

if __name__ == '__main__':
    
    print '>> start crawler vechai.info at {0}'.format(commonlib.getGMT7Time())
    
    cr = Vechai()
    cr.process('http://vechai.info/one-piece/', '/home5/vietcntt/public_html/site-api-vietcntt/res/truyen/one-piece/output1.gz')
    
    print '>> finished crawler vechai.info at {0}'.format(commonlib.getGMT7Time())
    os._exit(1)